<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<form id="pwd-form" name="ui-adminlte-form"
	data-toggle="validator" role="form" method="post"
	action="${pageContext.request.contextPath}/user/user!savePwd.action">
	<s:token></s:token>
	<div class="form-group">
		<label>输入旧密码</label>
			<input type="password" name="oldPwd"
				class="form-control required"
				remote="${pageContext.request.contextPath}/user/user!checkPassword.action"
				placeholder="输入旧密码"/>

	</div>
	<div class="form-group">
		<label>输入新密码</label>
			<input type="password" name="entity.password" id="pwd"
				class="form-control required passwordCheck"
				placeholder="输入新密码"/>
	</div>
	<div class="form-group">
		<label>确认新密码</label>
			<input type="password" name="repwd" equalTo="#pwd"
				class="form-control required"
				placeholder="输入新密码"/>
	</div>
</form>
<script>
	$(function() {
		form.init();

		$.extend(jQuery.validator.messages, {
			remote : "旧密码输入有误"
		});
	});
</script>
